<?php $this->load->view('public/front_pubnav');?>
<div class="nav1">
    <div id="tou"><img src="http://d01.res.meilishuo.net/img/_o/a5/a5/7a84ca4180e0c350205737d505a6_950_100.c1.jpg" height="110px" width="1024px"></div>
</div>
<div class="clr"></div>
<div class="nav1">
<div id="dajia">
    <div id="lun">
        <div id="myjQuery">
            <div id="myjQueryContent">
                <?php if(!empty($adfocus)) {foreach($adfocus as $adki => $advi){?>
                <div <?php if($adki != 0) echo 'class="smask"';?>><a href="<?php echo $advi['url'];?>" target="_blank"><img src="<?php echo base_url().'upload/adfocus/'.$advi['img'];?>"></a></div>
                <?php }}?>
            </div>
            <ul id="myjQueryNav">
                <?php if(!empty($adfocus)) {foreach($adfocus as $adk => $adv){?>
                <li <?php if($adk ==0) echo 'class="current"';?>><a href="#" target="_self"><?php echo $adv['desc'];?></a></li>
                <?php }}?>
            </ul>
        </div>
    </div>
    <div id="product99">
        <div class="tit">
            <div class="tit1"><b>公主推荐</b></div>
            <div id="tit2"><b>更多&gt;&gt;</b></div>
        </div>
        <div class="clr"></div>
        <div class="clr1"></div>
        <?php if(!empty($cloth_class)) {foreach ($cloth_class as $cck => $ccv){?>
        <div id="conlist">
            <div class="bgconlist">
                <div class="conlist1">
				<a href="<?php echo base_url().'index/baby_list/'.$ccv['id'];?>">
                <font color="#FF0000"><?php echo $ccv['name'];?></font>
				</a>
                </div>
            </div>

            <div class="clsconlist">
                <?php
                	$this->member_id = $this->session->userdata('member_id');
                	
                    $baby_type = $this->baby_type->get_list(array('cloth_class_id'=>$ccv['id']));
                    if(!empty($baby_type)){foreach($baby_type as $btk => $btv){
                ?>
                <div class="clsconlist1"><a href="<?php echo base_url().'index/baby_list/sonclass/'.$btv['id'];?>"><?php echo $btv['name'];?></a></div>
                <?php }}?>
            </div>
        </div>
        <div class="clr1"></div>
        <?php }}?>
		
    </div>
    <div id="weibo">
        <div class="tit">丫头在线</div>
        <div class="clr1"></div>
        <div class="kefu">论坛版主招聘</div>
        <div class="clr1"></div>
        <div class="kefu">美妆帮你选</div>
        <div class="clr1"></div>
        <div class="kefu">买贵了差价退回</div>
        <div class="clr1"></div>
        <div class="kefu">网购被骗打官司</div>
        <div class="clr1"></div>
        <div class="kefu">积分兑换</div>
        <div class="clr1"></div>
        <div class="kefu">想买没空拍</div>
        <div class="clr1"></div>
        <div class="kefu">投诉举报</div>
    </div>
</div>
<div class="clr1"></div>
<div class="taolun" id="taolun">
<div class="ltaolun" id="ltaolun">
    <div class="ltaolun1"><img src="<?php echo base_url();?>images/publick/The album.gif"/></div>
    <div class="clr1"></div>
    <div class="banner" id="banner">
        <?php if(!empty($member)){foreach($member as $memk =>$memv){?>
        <div id="ltaolun2">
                <div class="ltaolun3">
                <a href="<?php echo base_url('column/center').'/'.$memv['id'];?>">
                    <img src="<?php if(!empty($memv['img'])) {echo base_url().'upload/avator/'.$memv['img'];}else{ echo 'http://assets.taobaocdn.com/app/sns/img/default/avatar-60.png'; }?>"/>
                </a>
                </div>
                <div class="ltaolun4">
                    <div class="ltaolun5"><a href="<?php echo base_url('column/center').'/'.$memv['id'];?>"><b><?php echo $memv['name'];?></b></a></div>
                    <div class="clr1"></div>
                    <div class="ltaolun5">专辑<font color="#66CCCC"><b><?php echo count($this->column->get_list(array('memberid'=>$memv['id'])));?></b></font></div>
                    <div class="clr1"></div>
                    <div class="ltaolun5">粉丝<font color="#66CCCC"><b><?php echo count($this->focus->get_list(array('focuseder'=>$memv['id'])));?></b></font></div>
                    <div class="clr1"></div>
                    <a focuser_id='<?php echo $memv['id'];?>' class="<?php if(!empty($this->member_id)){echo 'focuser_img';}else{echo 'notin';}?>">
                    <div class="ltaolun5"><img src="<?php echo base_url();?>images/publick/Plus interest.gif" /></div>
                    </a>
                </div>
        </div>
        <?php }}?>
        <div id="wrap2"></div>
    </div>
</div>
<div class="rtaolun">
    <div class="rtaolun1"><b>【专辑公告栏】</b></div>
    <div class="rtaolun2">◆玩转专辑小攻略</div>
    <div class="rtaolun2">◆如何成为专辑红人</div>
    <div class="rtaolun2"><a href="<?php echo base_url();?>column/column_list"><img src="<?php echo base_url();?>images/publick/Create album.gif" width="115px" height="35px"/></a></div>
</div>
<div class="clr1"></div>
<div class="special">
    <?php if(!empty($column_class)){foreach($column_class as $colk => $colv){?>
        <div class="special20" onmouseover="this.className='special30'" onmouseout="this.className='special20'">
            <div class="special21">
                <div class="tspecial1"><a href="<?php echo base_url().'column/detail/'.$colv['id'];?>"><?php echo $colv['title'];?></a></div>
                <div class="tspecial22"><font color="#FF0000"><?php echo count($this->like_baby->get_list(array('column_id'=>$colv['id'])));?></font>个宝贝</div>
            </div>
            <div class="clr1"></div>
            <div class="bspecial">
                <div class="bspecial1">
                    <a href="<?php echo base_url().'column/detail/'.$colv['id'];?>">
                        <img src="<?php if(!empty($colv['img'])){echo base_url().'upload/column/'.$colv['img'];}else{echo 'http://img01.taobaocdn.com/bao/uploaded/i1/T1sounXnXDXXXJzTs5_060202.jpg_210x1000.jpg';}?>" width="169px" height="190px" />
                    </a>
                 </div>
                
                </div>
                <div class="bspecial2">
                    <div class="bspecial4">
                        <?php
	                        $baby = $this->like_baby->get_list(array('column_id'=>$colv['id']),6);
	                        $column_member = $this->member->get_one_list($colv['memberid']);
	                        if(!empty($baby)){foreach($baby as $babyk => $babyv){
	                            $one_baby = $this->baby->get_one_list($babyv['baby_id']);
	                            if (!empty($one_baby)){
                        ?>
                            <div class="bspecial5"><a href="<?php echo base_url().'index/baby_detail/'.$one_baby['id'];?>"><img src="<?php echo base_url().'upload/baby/'.$one_baby['small_img'];?>" width="60px" height="60px"/></a></div>
                        <?php }}}?>
                    </div>

                </div>
                <!-- 
                <div class="bspecial3">
                    <div class="bspecial7"><img src="<?php echo base_url();?>images/publick/heart.gif" />1</div>
                    <div class="bspecial8"><img src="<?php echo base_url();?>images/publick/msg.gif" />评论</div>
                </div>
 			-->
            <div class="dspecia1">
                <div class="dspecia2">
                <a href="<?php echo base_url('column/center').'/'.$colv['memberid'];?>">
                <img width="30px" height="30px" src="<?php if(!empty($column_member['img'])) {echo base_url().'upload/avator/'.$column_member['img'];}else{ echo 'http://assets.taobaocdn.com/app/sns/img/default/avatar-60.png'; }?>"/>
                </a>
                </div>
                <div class="dspecia5">
                    <div class="dspecia3">
                    <a href="<?php echo base_url('column/center').'/'.$colv['memberid'];?>">
                    <font color="#FF0000"><?php echo $column_member['name'];?></font>
                    </a>
                    </div>
                    <?php 
					  //计算修改专辑时间
					  if($colv['updatetime']){
					  	$second = (time()-strtotime($colv['updatetime']));  //秒
					  	$minute = floor($second/60);  //分，取整
					  	$hour = floor($minute/60);  //小时，取整
					  	$day = floor($hour/24);  //天，取整
					  	if($second < 60) $edit_time = $second."秒前";
					  	elseif ($minute < 60 && $second > 60) $edit_time = $minute."分钟前";
					  	elseif ($hour < 24 && $minute > 60) $edit_time = $hour."小时前";
					  	else $edit_time = $day."天前";
					  }else{
					  	$edit_time = "刚刚";
					  }							  
				  ?>
                    <div class="dspecia3"><font color="#999999"><?php echo $edit_time;?>&nbsp;修改了专辑</font></div>
                </div>
            </div>
        </div>
    <?php }}?>
</div>
<div class="clr1"></div>

<div id="toupiao">
    <div id="wtou">
        <div class="sgroupp">
            <div class="sgroupp_tit">
                <div class="sgroupp_tit_1">小组</div>
                <div class="sgroupp_tit_2"><a href="<?php echo base_url('index/life_newsl/news_info');?>">查看全部></a></div>
            </div>
            <div class="clr"></div>
            <div class="sgroup_essay">
                <div class="sgroup_essay_img">
                    <img src="http://s6.mogujie.cn/pic/130513/2rdi2_kqyuyvkznjbgewkugfjeg5sckzsew_120x120.jpg">
                </div>
                <div class="sgroup_essay_text">
                	<?php if(!empty($news_info)){foreach($news_info as $nik => $niv){?>
                    <div class="sgroup_essay_text_1"><a href="<?php echo base_url().'index/life_news_detail/'.$niv['id'];?>"><?php if(!empty($niv['title'])) echo $niv['title'];?></a></div>
                    <div class="clr"></div>
                    <?php }}?>
                </div>
            </div>
            <div class="clr"></div>
            <div class="sgroupp_lessen">
                <div class="sgroupp_lessen_1">
                    <!-- <div class="sgroupp_lessen_1_tit"><a href="<?php echo base_url();?>buy-group/information.html">化妆菜鸟の课堂</a></div> -->
                    <?php if(!empty($news_info2)){foreach($news_info2 as $ni2k => $ni2v){?>
                    <div class="clr"></div>
                    <div class="sgroupp_lessen_1_content"><a href="<?php echo base_url().'index/life_news_detail/'.$ni2v['id'];?>"><?php if(!empty($ni2v['title'])) echo $ni2v['title'];?></a></div>
                    <?php }}?>
                </div>

                <div class="sgroupp_lessen_2">
                    <div class="sgroupp_lessen_2_1">
                        <div class="sgroupp_lessen_2_list">发型</div>
                        <div class="sgroupp_lessen_2_list">消灭毛孔</div>
                    </div>
                    <div class="clr"></div>
                    <div class="sgroupp_lessen_2_1">
                        <div class="sgroupp_lessen_2_list">减肥</div>
                        <div class="sgroupp_lessen_2_list">日韩穿搭</div>
                    </div>
                    <div class="clr"></div>
                    <div class="sgroupp_lessen_2_1">
                        <div class="sgroupp_lessen_2_list">妆容教程</div>
                        <div class="sgroupp_lessen_2_list">祛痘</div>
                    </div>
                    <div class="clr"></div>
                    <div class="sgroupp_lessen_2_1">
                        <div class="sgroupp_lessen_2_list">小个子</div>
                        <div class="sgroupp_lessen_2_list">微胖妹</div>
                    </div>
                    <div class="clr"></div>
                    <div class="sgroupp_lessen_2_1">
                        <div class="sgroupp_lessen_2_list">美白</div>
                        <div class="sgroupp_lessen_2_list">省钱攻略</div>
                    </div>
                </div>
            </div>

        </div>
        <div class="zhatou">
            <div class="star_list">
                <div class="star_list_tit"><a href="<?php echo base_url('column');?>">专辑</a></div>
                <div class="star_list_tit_1"><a href="<?php echo base_url();?>products/accesories/matrimony.html">婚礼</a></div>
                <div class="star_list_tit_1"><a href="<?php echo base_url();?>products/accesories/hairdressing.html">美发</a></div>
                <div class="star_list_tit_1"><a href="<?php echo base_url();?>products/accesories/lucida.html">明星</a></div>
                <div class="star_list_tit_1"><a href="<?php echo base_url();?>products/accesories/makeup.html">美妆</a></div>
                <div class="star_list_tit_2"><a href="<?php echo base_url().'index/life_newsl/life_share';?>">查看全部></a></div>
            </div>
            <div class="clr"></div>
            <div class="star_img">
                <img src="<?php echo base_url();?>images/demo/toufa.jpg" />
            </div>
            <div class="clr"></div>
            <div class="star_list_tit_3">韩式扎发</div>
            <div class="star_list_tit_4">世事无尘</div>
            <div class="clr"></div>
            <div class="star_shos">
                <div class="star_shos_img"><img src="<?php echo base_url();?>images/demo/shos.jpg"></div>
                <div class="star_shos_tit">
                    <div class="star_shos_tit_1">高跟控</div>
                    <div class="star_shos_tit_2">莎士比亚说</div>
                </div>
            </div>
            <div class="clr"></div>
            <div class="star_shos">
                <div class="star_shos_img"><img src="<?php echo base_url();?>images/demo/QQ截图20130521182221.jpg"></div>
                <div class="star_shos_tit">
                    <div class="star_shos_tit_1">韩系夏日搭配</div>
                    <div class="star_shos_tit_2">莎士比亚说</div>
                </div>
            </div>
        </div>
    </div>

    <div id="rtou">

        <div id="rtou2">
            <table>
                <tr><td><font color="#990000"><b>今日话题</b></font></td></tr><tr>
                <?php if(!empty($topic)){foreach($topic as $topick => $topicv){?>
                    <tr><td><a href="<?php echo base_url().'index/life_news_detail/'.$topicv['id'];?>"><?php if(!empty($topicv['title'])) echo $topicv['title'];?></a></td><td class="td1" align="left"><font color="#FFFFFF">NEW</font></td></tr>
                <?php }}?>
                
            </table>
        </div>
        
        <div id="rtou7"><img src="http://img01.taobaocdn.com/tps/i1/T13cE3XhlcXXaCwpjX.png" height="80px"/></div>
    </div>


<div class="clr1"></div>
<div class="trial">
    <div class="trial_leftbox">
        <div class="trial_tit">
            <div class="trial_tit_right">格格恋试用中心</div>
        </div>
        <div class="clr1"></div>
        <div class="trial_product">

            <span class="next"></span>
            <span class="prev"></span>
            <div class="img-list">
                <div class="div999">
                	<?php if(!empty($free_apply)){foreach($free_apply as $fak => $fav){?>
                    <div class="trial_product_left">
                        <div class="trial_product_img"><a href="<?php echo base_url();?>index/free_detail/<?php echo $fav['id'];?>">
                                <img src="<?php if(!empty($fav['big_img'])){echo base_url().'upload/free_baby/'.$fav['big_img'];}?>"></a>
                        </div>
                        <div class="trial_product_tit">
                            <div class="trial_product_top"><a href="<?php echo base_url();?>index/free_detail/<?php echo $fav['id'];?>"><?php if(!empty($fav['desc'])){echo $fav['desc'];}?></a></div>
                            <div class="clr1"></div>
                            <div class="trial_product_mid"><?php if(!empty($fav['left_num'])){echo $fav['left_num'];}?>份</div>
                            <div class="clr1"></div>
                            <div class="trial_product_bot"><a href="<?php echo base_url();?>index/free_detail/<?php echo $fav['id'];?>">立即查看</a></div>
                        </div>
                    </div>
                    <?php }}?>
                </div></div>    </div>

        <div class="clr1"></div>
        <div class="largess">特约商家赠送</div>
        <div class="clr1"></div>
        <div class="largess_product">
            <div class="largess_product_left">
                <div class="largess_product_img"><a href="<?php echo base_url();?>buy-group/tryout.html"><img src="http://s4.mogujie.cn/pic/130521/stqq_kqytit2dnjbgossugfjeg5sckzsew_75x75.jpg"></a></div>
                <div class="largess_product_tit">
                    <div class="largess_product_top"><a href="<?php echo base_url();?>buy-group/tryout.html">彩妆专用修正笔--改正笔</a></div>
                    <div class="largess_product_bot"><a href="<?php echo base_url();?>buy-group/tryout.html">工具</a></div>
                </div>
            </div>
            <div class="largess_product_right">
                <div class="largess_product_img"><a href="<?php echo base_url();?>buy-group/tryout.html"><img src="http://s4.mogujie.cn/pic/130521/stqq_kqytit2dnjbgossugfjeg5sckzsew_75x75.jpg"></a></div>
                <div class="largess_product_tit">
                    <div class="largess_product_top"><a href="<?php echo base_url();?>buy-group/tryout.html">彩妆专用修正笔--改正笔</a></div>
                    <div class="largess_product_bot"><a href="<?php echo base_url();?>buy-group/tryout.html">工具</a></div>
                </div>
            </div>
        </div>
        <div class="clr1"></div>
        <div class="largess_product">
            <div class="largess_product_left">
                <div class="largess_product_img"><a href="<?php echo base_url();?>buy-group/tryout.html"><img src="http://s4.mogujie.cn/pic/130521/stqq_kqytit2dnjbgossugfjeg5sckzsew_75x75.jpg"></a></div>
                <div class="largess_product_tit">
                    <div class="largess_product_top"><a href="<?php echo base_url();?>buy-group/tryout.html">彩妆专用修正笔--改正笔</a></div>
                    <div class="largess_product_bot"><a href="<?php echo base_url();?>buy-group/tryout.html">工具</a></div>
                </div>
            </div>
            <div class="largess_product_right">
                <div class="largess_product_img"><a href="<?php echo base_url();?>buy-group/tryout.html"><img src="http://s4.mogujie.cn/pic/130521/stqq_kqytit2dnjbgossugfjeg5sckzsew_75x75.jpg"></a></div>
                <div class="largess_product_tit">
                    <div class="largess_product_top"><a href="<?php echo base_url();?>buy-group/tryout.html">彩妆专用修正笔--改正笔</a></div>
                    <div class="largess_product_bot"><a href="<?php echo base_url();?>buy-group/tryout.html">工具</a></div>
                </div>
            </div>
        </div>
    </div>
    <div class="trial_rightbox">
        <div class="trial_tit">精选团购宝贝</div>
        <div class="clr1"></div>
        <div class="group_buying">
            <div class="group_buying_left">
                <div class="group_buying_img"><a href="<?php echo base_url();?>buy-group/buy_group.html"><img src="http://s5.mogujie.cn/b7/pic/130521/phqkg_kqyvun27njbdox2ugfjeg5sckzsew_280x180.jpg"></a></div>
                <div class="clr1"></div>
                <div class="group_buying_tit"><a href="<?php echo base_url();?>buy-group/buy_group.html">29两件包邮！韩国闺蜜情侣款</a></div>
                <div class="clr1"></div>
                <div class="group_buying_price">
                    <div class="buying_price">￥59</div>
                    <div class="buy_oldprice">原价：198元</div>
                </div>
            </div>
            <div class="group_buying_right">
                <div class="group_buying_img"><a href="<?php echo base_url();?>buy-group/buy_group.html"><img src="http://s5.mogujie.cn/b7/pic/130521/phqkg_kqyvun27njbdox2ugfjeg5sckzsew_280x180.jpg"></a></div>
                <div class="clr1"></div>
                <div class="group_buying_tit"><a href="<?php echo base_url();?>buy-group/buy_group.html">29两件包邮！韩国闺蜜情侣款</a></div>
                <div class="clr1"></div>
                <div class="group_buying_price">
                    <div class="buying_price">￥59</div>
                    <div class="buy_oldprice">原价：198元</div>
                </div>
            </div>
        </div>
        <div class="clr1"></div>
        <div class="group_buying">
            <div class="group_buying_left">
                <div class="group_buying_img"><a href="<?php echo base_url();?>buy-group/buy_group.html"><img src="http://s5.mogujie.cn/b7/pic/130521/phqkg_kqyvun27njbdox2ugfjeg5sckzsew_280x180.jpg"></a></div>
                <div class="clr1"></div>
                <div class="group_buying_tit"><a href="<?php echo base_url();?>buy-group/buy_group.html">29两件包邮！韩国闺蜜情侣款</a></div>
                <div class="clr1"></div>
                <div class="group_buying_price">
                    <div class="buying_price">￥59</div>
                    <div class="buy_oldprice">原价：198元</div>
                </div>
            </div>
            <div class="group_buying_right">
                <div class="group_buying_img"><a href="<?php echo base_url();?>buy-group/buy_group.html"><img src="http://s5.mogujie.cn/b7/pic/130521/phqkg_kqyvun27njbdox2ugfjeg5sckzsew_280x180.jpg"></a></div>
                <div class="clr1"></div>
                <div class="group_buying_tit"><a href="<?php echo base_url();?>buy-group/buy_group.html">29两件包邮！韩国闺蜜情侣款</a></div>
                <div class="clr1"></div>
                <div class="group_buying_price">
                    <div class="buying_price">￥59</div>
                    <div class="buy_oldprice">原价：198元</div>
                </div>
            </div>
        </div>
    </div>
</div>

	   
	<div class="clr1"></div> 
	 <div id="foter">
	           <div id="gediao"><font color="#FF3300">高品质排行榜</font></div>
			   
			   <div id="dgediao">
			           <div class="dgediao1">
					           <div class="dgediao2"><font color="#FFFFFF"><b>热门主题</b></font></div>
					   </div>
					   <div class="dgediao3">
					           <div class="dgediao4"><img src="<?php echo base_url();?>images/publick/green plants.jpg" /></div>
							   <div class="dgediao5">绿植，盆栽</div>
					   </div>
					   <div class="dgediao3">
					           <div class="dgediao4"><img src="<?php echo base_url();?>images/publick/chuangyijiaju.jpg" /></div>
							   <div class="dgediao5">创意，家居</div>
					   </div>
					   <div class="dgediao3">
					           <div class="dgediao4"><img src="<?php echo base_url();?>images/publick/sdwawa.jpg" /></div>
							   <div class="dgediao5">&nbsp;&nbsp;SD娃娃</div>
					   </div>
					    <div class="dgediao3">
					           <div class="dgediao4"><img src="<?php echo base_url();?>images/publick/books.jpg" /></div>
							   <div class="dgediao5">书籍，唱片</div>
					   </div>
					    <div class="dgediao3">
					           <div class="dgediao4"><img src="<?php echo base_url();?>images/publick/yuanchuang.jpg" /></div>
							   <div class="dgediao5">原创，设计</div>
					   </div>
					    <div class="dgediao3">
					           <div class="dgediao4"><img src="<?php echo base_url();?>images/publick/guwan.jpg" /></div>
							   <div class="dgediao5">古玩，国粹</div>
					   </div>
					    <div class="dgediao3">
					           <div class="dgediao4"><img src="<?php echo base_url();?>images/publick/80hou.jpg" /></div>
							   <div class="dgediao5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;80后</div>
					   </div>
					    <div class="dgediao3">
					           <div class="dgediao4"><img src="<?php echo base_url();?>images/publick/shougong.jpg" /></div>
							   <div class="dgediao5">&nbsp;&nbsp;&nbsp;手工DIY</div>
					   </div>
			   </div>		  
	 </div>
	</div>	 
	 </div>	  
</div>	 </div>	

<?php $this->load->view('public/front_pubfooter'); ?>
